package cn.iocoder.yudao.module.trade.controller.admin.aftersale.vo;

import cn.iocoder.yudao.framework.common.validation.InEnum;
import cn.iocoder.yudao.module.trade.enums.aftersale.AfterSaleWayEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 交易售后创建 Request VO")
@Data
public class AfterSaleCreateReqVO {

    @Schema(description = "订单项编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "订单项编号不能为空")
    private Long orderItemId;

    @Schema(description = "售后方式(无需传值, 已指定默认值)", example = "1")
    private Integer way = AfterSaleWayEnum.REFUND.getWay();

    @Schema(description = "退款金额(无需传值, 已指定默认值)", example = "100")
    private Integer refundPrice;

    @Schema(description = "退款原因", example = "无法发货")
    private String applyReason;

    @Schema(description = "补充描述", example = "商品质量不好")
    private String applyDescription;

    @Schema(description = "补充凭证图片", example = "https://www.iocoder.cn/1.png, https://www.iocoder.cn/2.png")
    private List<String> applyPicUrls;

    /**
     * 退款总金额(折算汇率后)，单位：分
     */
    @Schema(description = "退款总金额(折算汇率后)，单位：分", example = "100")
    private Integer refundPaymentPrice;

}
